package org.solr.entity;

import lombok.Data;
import org.apache.solr.client.solrj.beans.Field;
import org.springframework.data.annotation.Id;
import org.springframework.data.solr.core.mapping.SolrDocument;

import java.util.Date;

/**
 * @author yexi
 */
@SolrDocument(collection = "users")
@Data
public class User {
	@Id
	private Integer id;
	@Field
	private String name;
	@Field
	private Date birth;

}
